package com.tpl.core.basedata.dao;


import com.tpl.core.common.annotation.DaoAnnotation;
import com.tpl.core.common.page.Page;
import com.tpl.core.entity.sys.TriggerTask;
import org.apache.ibatis.annotations.Param;

import java.util.List;


@DaoAnnotation
public interface TriggerTaskDao {
	List<TriggerTask> getOnlineTaskList();
	
	Page getTaskPage(@Param("pageIndex")int pageIndex, @Param("pageSize")int pageSize);

	void afterExcute(@Param("id")long id, @Param("curDate")String curDate);

	TriggerTask getTaskById(long id);
	
	void doChangeState(@Param("state")int state,@Param("id")long id);
	
	TriggerTask getTask(@Param("sourceName")String sourceName,@Param("sourceId")String sourceId);
	
	void insert(TriggerTask task);
	
	void update(TriggerTask task);
	
	void delete(long id);
}
